Skip to content

Render structured claim summary answers (RND-2030)#3019

Open
hugokallstrom wants to merge 6 commits into
developfrom
feat/claim-summary-structured-answers
Open

Render structured claim summary answers (RND-2030)#3019
hugokallstrom wants to merge 6 commits into
developfrom
feat/claim-summary-structured-answers

Conversation

@hugokallstrom

Copy link
Copy Markdown
Contributor

Why

The claims-service summary step now exposes keyDetails (facts for a collapsed
"Claim details" card) and answers (ordered question/answer pairs whose value is
a Text / Audio / Files union), for the new "claims-flow-new" summary UI. Today the
Android summary renders one flat, always-expanded card, so it can't show the new
collapsed card + per-question answers (with inline audio playback).

What

  • SummaryFragment selects the new keyDetails and answers fields; StepContent.Summary
    gains keyDetails + answers (with an Answer.Value = Text/Audio/Files model), mapped
    in ClaimIntentExt.
  • ChatClaimSummaryTopContent renders a collapsed "Claim details" card from keyDetails
    (falling back to items when empty) plus a "Show all answers" button — shown only when
    answers is non-empty — that opens a HedvigBottomSheet listing each question with its
    answer inline (text, a HedvigAudioPlayer for recorded answers, or files). The existing
    Recording and Uploaded-files sections are unchanged.
  • Adds the claim_status_show_all_answers string.

⚠️ Do not merge until claims-service PR #1310 is merged and its GraphQL schema is
published to production.
This build queries keyDetails/answers; if it ships before
the supergraph exposes them, claim submission fails with a GraphQL validation error at
ClaimIntentStart. The hand-added schema.graphqls entries and the dev strings.xml
fallback should also be reconciled via the schema/strings download bots before merge.

🤖 Generated with Claude Code

hugokallstrom and others added 2 commits July 13, 2026 13:58
Backend adds structured keyDetails/answers (Text/Audio/Files union) to
ClaimIntentStepContentSummary. Hand-add the identical SDL to the local
schema (dev router doesn't have it yet), extend SummaryFragment,
StepContent.Summary, and the union mapping so the data layer is ready
for the UI to consume.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Render the collapsed "Claim details" card from the structured keyDetails,
add a "Show all answers" control that opens a HedvigBottomSheet listing each
answer (text / inline audio player / files), and keep the existing Recording
and Uploaded files sections. Falls back to items when keyDetails is empty so
older backend responses do not regress.

Adds a jvmTest ImageComposeScene render harness for PNG verification (KMP
modules are unsupported by the AGP screenshot plugin) and a no-op JVM
CommonMediaPlayer so audio-backed composables render headlessly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@notion-workspace

Copy link
Copy Markdown

@hugokallstrom hugokallstrom marked this pull request as ready for review July 14, 2026 11:48
@hugokallstrom hugokallstrom requested a review from a team as a code owner July 14, 2026 11:48
hugokallstrom and others added 4 commits July 14, 2026 13:54
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Outline the show-all-answers button, hide the audio transcript, and use
16dp top spacing above the button.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Add a full-width secondary Close button at the bottom of the answers sheet
(dismisses it), and give the header title more top spacing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant